﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace OMF.Service.Contracts.DataContracts
{
    [DataContract]
    public class Order
    {
        [DataMember]
        public string ID { get; set; }
        [DataMember]
        public int Quantity { get; set; }
        [DataMember]
        public double Price { get; set; }
        [DataMember]
        public string Symbol { get; set; }
        [DataMember]
        public OrderStatus Status { get; set; }
        [DataMember]
        public OrderType OrdType { get; set; }
    }

    [DataContract]
    public enum OrderStatus
    {
        [EnumMember]
        Pending=0,
        [EnumMember]
        Fill
    }

    [DataContract]
    public enum OrderType
    {
        [EnumMember]
        Limit = 0,
        [EnumMember]
        Market
    }

}
